SET rootPath=%cd%
SET file=%rootPath%"\version.js"

SET version=0
for /f "eol=; tokens=2,2 delims==" %%a in ('findstr /i "s_gameVersions" %file%') do ( 
	SET /a version=%%a+1
)
for /f "tokens=1" %%d in ('type %file%') do (
	echo+%%d|findstr "version"
	if %errorlevel% equ 0 (
		echo var s_gameVersions=%version% >$
	)
)

move $ %file%
